package com.ulife.order.api.response.promotion;

import com.ulife.common.gateway.utils.annotation.Description;
import com.ulife.common.gateway.utils.responseEntity.StringArrayResp;

import java.io.Serializable;

/**
 * Created by Ulife- on 2016/3/31.
 */
@Description("优惠券信息")
public class ProInfo  implements Serializable {
    @Description("优惠券ID")
    public long id;
    @Description("优惠券类型（REDUCE=满减、POSTAGEREDUCE=包邮..）")
    public String type;
    @Description("优惠券描述")
    public String desc;
    @Description("优惠券名称")
    public String title;
    @Description("优惠券规则")
    public ProRules rules;
    @Description("起始日期")
    public long start;
    @Description("结束日期")
    public long end;
    @Description("pc端详情链接")
    public String pcUrl;
    @Description("移动端详情链接")
    public String mobileUrl;
    @Description("优惠券渠道（自营、寄售）")
    public String productFrom;
    @Description("优惠券使用终端提示")
    public String terminal="";
    @Description("优惠券状态")
    public int status;
    @Description("优惠券适用门店（外部优惠券）")
    public StringArrayResp shop; //oto
    @Description("优惠券提示")
    public String tip="";
    @Description("适用商品ID")
    public long[] items;
    @Description("适用商品合计金额")
    public double amounts;
    @Description("适用商品合计后差额")
    public double difference;
    @Description("角标")
    public String tag;



    @Description("领取日期")
    public long createtime;
    @Description("是否在购物车默认选中的优惠券")
    public boolean isDefault;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public ProRules getRules() {
        return rules;
    }

    public void setRules(ProRules rules) {
        this.rules = rules;
    }

    public long getStart() {
        return start;
    }

    public void setStart(long start) {
        this.start = start;
    }

    public long getEnd() {
        return end;
    }

    public void setEnd(long end) {
        this.end = end;
    }

    public String getPcUrl() {
        return pcUrl;
    }

    public void setPcUrl(String pcUrl) {
        this.pcUrl = pcUrl;
    }

    public String getMobileUrl() {
        return mobileUrl;
    }

    public void setMobileUrl(String mobileUrl) {
        this.mobileUrl = mobileUrl;
    }

    public String getProductFrom() {
        return productFrom;
    }

    public void setProductFrom(String productFrom) {
        this.productFrom = productFrom;
    }

    public String getTerminal() {
        return terminal;
    }

    public void setTerminal(String terminal) {
        this.terminal = terminal;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public StringArrayResp getShop() {
        return shop;
    }

    public void setShop(StringArrayResp shop) {
        this.shop = shop;
    } //oto

    public String getTip() {
        return tip;
    }

    public void setTip(String tip) {
        this.tip = tip;
    }

    public long[] getItems() {
        return items;
    }

    public void setItems(long[] items) {
        this.items = items;
    }

    public double getAmounts() {
        return amounts;
    }

    public void setAmounts(double amounts) {
        this.amounts = amounts;
    }

    public double getDifference() {
        return difference;
    }

    public void setDifference(double difference) {
        this.difference = difference;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }


    public boolean getDefault() {
        return isDefault;
    }

    public void setDefault(boolean aDefault) {
        isDefault = aDefault;
    }
}
